var app = angular.module(setting.appName);
app.register.controller("UserBanksCtrl", ["$rootScope", "$scope", "$location", "$timeout", "$window", "ToastMessage", "FundService", function($rootScope, $scope, $location, $timeout, $window, ToastMessage, FundService) {
    var funs = {
        listMyBank: function() {
            FundService.listMyBank("all").success(function(data) {
                data && data.success && ($scope.banks = data.result,
                (!data.result || data.result.length <= 0) && ($scope.banksNoData = !0))
            })
        }
    };
    funs.listMyBank()
}
]);
